/**
 * meta 可配置参数
 * @param {boolean} icon 页面icon
 * @param {boolean} keepAlive 是否缓存页面
 * @param {string} title 页面标题
 */
export default [
    {
        path: '/',
        redirect: '/index'
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login/login.vue'),
        meta: {
            icon: '',
            keepAlive: true,
            title: 'login'
        }
    },
    {
        path: '/index',
        name: 'index',
        component: () => import('@/views/index/index.vue'),
        meta: {
            icon: '',
            keepAlive: true,
            title: 'index'
        }
    },
    {
        path: '/mine',
        name: 'mine',
        component: () => import('@/views/mine/mine.vue'),
        meta: {
            icon: '',
            keepAlive: true,
            title: 'mine'
        }
    }
]
// import Vue from 'vue';
// import Router from 'vue-router';
// import Home from './views/index.vue'
// Vue.use(Router);
//
// export default new Router({
//     mode: 'history',
//     base: process.env.BASE_URL,
//     routes: [
//         {
//             path: '/',
//             name: 'home',
//             component: Home,
//         }
//     ],
// });
